<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>属性继承</title>
		<style>
			.box1 {
				color: red;
				font-size: 12px;
			}
			/* 选择器的权重值会叠加 */
			.box1 li {
				color: green;
			}
			li {
				color: blue;
			}
			.box1 ul li {
				color: yellow;
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<ul>
				<li>列表1</li>
				<li>列表1</li>
				<li>列表1</li>
				<li>列表1</li>
			</ul>
		</div>
		<h1>标题1</h1>
		<p>段落1	</p>
	</body>
</html>